<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/alertbox.js"></script>
		<script type="text/javascript">
			$(function(){
				$('form').submit(function(){
                	var _p1 = $('input[name="password"]');
                	if ( _p1.val().length < 6 ){
                		setInputStyle( 'input[name="password"]' );
						setAlertBox('密码不能少于6个字符！', 2);
                		return false;
                	}
                	
                	var _p2 = $('input[name="repassword"]');
                	if ( _p2.val() != _p1.val() ){
                		setInputStyle( 'input[name="repassword"]' );
						setAlertBox('两次密码不相同！', 2);
                		return false;
                	}
                });
            });
		</script>
		<style type="text/css">
			table td{ border:0; }
		</style>
	</head>
	<body>
		
		<include file="Public:position" />
			
		<ul class="act_this">
    		<li><a href="{:U('index?tag='.$_GET['tag'])}">基本信息</a></li>
    		<li><a href="{:U('info?tag='.$_GET['tag'])}">附加资料</a></li>
    		<li class="this">修改密码</li>
    	</ul>
        
        <div class="a_table" style="position:relative;top:-1px;_top:-2px;">
        <form action="__URL__/update/type/password" method="post">
    	<table width="100%" class="form_table">
    		<tr>
    			<Td></Td>
    			<Td></Td>
    		</tr>
			<tr>
				<td align="right">新密码</td>
				<td align="left"><input type="password" name="password" class="input_text w480" /></td>
			</tr>
			<tr>
				<td align="right">验证密码</td>
				<td align="left"><input type="password" name="repassword" class="input_text w480" /></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" name="setpassword" class="submit" value="提交修改" /></td>
			</tr>
			<tr>
    			<Td></Td>
    			<Td></Td>
    		</tr>
		</table>
		</form>
        </div>
	</body>
</html>